/**
 * 
 */
package com.pmsco.pms.util;

/**
 * @author Long Tran
 *
 */
public enum PmsEncodeType {
	
	BASE64(new Integer(1));
	
	private Integer encodeType;
	
	PmsEncodeType(Integer encodeType) {
		this.encodeType = encodeType;
	}
	
	public Integer getEncodeType() {
		return this.encodeType;
	}
	
	public static PmsEncodeType getPmsEncodeType(Integer encodeType) {
		PmsEncodeType pmsEncodeType = PmsEncodeType.BASE64;
		
		if(encodeType != null && encodeType.intValue() > 0) {
			for(PmsEncodeType temp : PmsEncodeType.values()) {
				if(encodeType.compareTo(temp.getEncodeType()) == 0)
					pmsEncodeType = temp;
					break;
			}
		}
		return pmsEncodeType;
	}

}
